import 'package:json_annotation/json_annotation.dart';

part 'balance_score.g.dart';

@JsonSerializable()
class BalanceScore extends Object {
  String? level;
  double? overall;
  @JsonKey(name: "overall_rs")
  double? overAllRs;
  double? opening;
  @JsonKey(name: "opening_rs")
  double? openingRs;
  @JsonKey(name: "early_middle_game")
  double? earlyMiddleGame;
  @JsonKey(name: "early_middle_game_rs")
  double? earlyMiddleGamers;
  @JsonKey(name: "middle_game")
  double? middleGame;
  @JsonKey(name: "middle_game_rs")
  double? middleGamers;
  @JsonKey(name: "late_middle_game")
  double? lateMiddleGame;
  @JsonKey(name: "late_middle_game_rs")
  double? lateMiddleGamers;
  double? endgame;
  @JsonKey(name: "endgame_rs")
  double? endGamers;

  BalanceScore();

  factory BalanceScore.fromJson(Map<String, dynamic> srcJson) =>
      _$BalanceScoreFromJson(srcJson);

  Map<String?, dynamic> toJson() => _$BalanceScoreToJson(this);
}
